import Http from "../Http";

// 媒体文件上传
export default {
    upload(file) {
        const data = new FormData;
        data.append('file', file); // 上传必须通过FormData对象形势
        return Http.post("/file/upload", data)
    },
}
